home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Visual Basic new SourceCode and Projects / WAVEPLAY / README.TXT < prev    next >
Encoding:
Text File  |  1996-08-24  |  1.2 KB  |  34 lines

  1. WAVEPLAY:  Simple VB Code Sampling how to play WAV files
  2.            using the Windows API
  3.  
  4. Author:    Jeff Lehman (98% of the code is from the VB KnowledgeBase)
  5.  
  6. Date:      24 August 1996
  7.  
  8. I have seen LOTS of questions on various NewsGroups asking how to play
  9. WAV files in Visual Basic.  Using 98% of the code from the VB Knowledge
  10. Base I finally figured out how.
  11.  
  12. This project was created in VB 4.0 Pro 16bit.  As of now the location of
  13. the WAV files is hardcoded as "C:\VB\WAVEPLAY" so unless you run the
  14. program from a directory by that name, you will have to change the
  15. directory path in the code.  I am still trying to learn how to properly
  16. use the CurDir function so the location of the WAV files does not have
  17. to be hardcoded.
  18.  
  19. When you click on the Quit button the program ends and the "Quit" WAV
  20. file continues to play...I am still trying to figure out how to make the
  21. program wait until the WAV file is finished playing before it ends.
  22.  
  23. Obviously this code is intended for "Newbies" such as myself, but I would
  24. have liked to have some code like this to "show me" how.
  25.  
  26. I know there are VBXs and OCXs out there to play WAV files, but I wanted
  27. to learn how to accomplish the task with code first.
  28.  
  29. Regards
  30.  
  31. JW
  32. jwlehman@coastalnet.com
  33.  
  34.